.free-hero {
    position: relative;
    background: linear-gradient(180deg, var(--mai-blue-900) 0%, var(--mai-blue-700) 100%);
    overflow: hidden;
}

.free-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 540px at 50% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
        repeating-linear-gradient(45deg, transparent 0 34px, rgba(255, 255, 255, 0.018) 34px 36px);
    pointer-events: none;
}

.free-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 88px 24px 96px;
    color: #fff;
    text-align: center;
}

.free-pill {
    display: inline-flex;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.free-hero h1 {
    max-width: 840px;
    margin: 0 auto 18px;
    font-size: clamp(34px, 5.8vw, 62px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.4px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.free-hero-copy {
    max-width: 740px;
    margin: 0 auto 34px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.65;
}

.free-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.free-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 15px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.free-btn:hover {
    transform: translateY(-2px);
}

.free-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex: 0 0 auto;
}

.free-btn-primary {
    background: #fff;
    color: var(--mai-blue-900);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.free-btn-primary:hover {
    background: var(--mai-blue-800);
    color: #fff;
}

.free-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.44);
}

.free-btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.free-btn-link {
    min-width: auto;
    color: var(--mai-blue-700);
    padding-left: 0;
    padding-right: 0;
}

.free-btn-link:hover {
    color: var(--mai-blue-900);
}

.free-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
}

.highlight-item {
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

.highlight-item strong {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.highlight-item span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.free-main {
    padding: 88px 24px 40px;
}

.free-section {
    max-width: 1160px;
    margin: 0 auto 72px;
}

.free-section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(10, 37, 64, 0.07);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.section-head {
    max-width: 760px;
    margin-bottom: 32px;
}

#lectii .section-head {
    max-width: none;
}


@media (max-width: 1100px) {
    #lectii .section-title,
    #lectii .section-copy {
        white-space: normal;
    }
}

.section-copy {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.65;
}

.lesson-grid,
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.lesson-card,
.benefit-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
}

.lesson-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--mai-blue-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.lesson-card h3,
.benefit-card h3 {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--mai-blue-900);
    margin-bottom: 12px;
}

.lesson-card p,
.benefit-card p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
}

.lesson-points {
    list-style: none;
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.lesson-points li {
    position: relative;
    padding-left: 18px;
    color: var(--mai-blue-800);
    font-size: 14px;
    font-weight: 600;
}

.lesson-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mai-blue-500);
}

.cta-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7fb 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 26px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.cta-panel h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--mai-blue-900);
    margin-bottom: 12px;
}

.cta-panel p {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.65;
}

.cta-actions {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}

.cta-actions .free-btn-primary {
    background: var(--mai-blue-700);
    color: #fff;
}

.cta-actions .free-btn-primary:hover {
    background: var(--mai-blue-900);
}

.cta-actions .free-btn-secondary {
    color: var(--mai-blue-800);
    border-color: rgba(20, 61, 110, 0.2);
    background: #fff;
}

.cta-actions .free-btn-secondary:hover {
    background: var(--bg-soft);
    border-color: var(--mai-blue-400);
}

/* === Package tabs === */
.package-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.pkg-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--mai-blue-900);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.pkg-tab:hover {
    border-color: var(--mai-blue-500);
    transform: translateY(-1px);
}

.pkg-tab.is-active {
    background: var(--mai-blue-800);
    color: #fff;
    border-color: var(--mai-blue-800);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.25);
}

.pkg-soon {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(10, 37, 64, 0.08);
    color: var(--mai-blue-700);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pkg-tab.is-active .pkg-soon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* === Pachet panel === */
.pkg-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.pkg-panel-head {
    margin-bottom: 28px;
    max-width: 760px;
}

.pkg-panel-head h3 {
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 800;
    color: var(--mai-blue-900);
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin: 8px 0 10px;
}

@media (max-width: 900px) {
    .pkg-panel-head h3 {
        font-size: clamp(15px, 4vw, 20px);
    }
}

.pkg-panel-head p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
}

.pkg-panel-soon {
    text-align: center;
    padding: 60px 24px;
}

.pkg-soon-msg {
    color: var(--text-dim);
    font-size: 16px;
    font-weight: 600;
}

/* === Video grid === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.video-single {
    max-width: 860px;
    margin: 0 auto;
}

.video-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-meta {
    padding: 18px 20px 22px;
}

.video-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--mai-blue-700);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.video-meta h4 {
    font-size: 19px;
    font-weight: 800;
    color: var(--mai-blue-900);
    margin: 0 0 8px;
    line-height: 1.25;
}

.video-meta p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .lesson-grid,
    .benefit-grid,
    .free-highlights,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .pkg-panel {
        padding: 24px 20px;
    }
}

@media (max-width: 720px) {
    .free-hero-inner {
        padding: 64px 20px 70px;
    }

    .free-main {
        padding: 56px 20px 20px;
    }

    .free-section-alt,
    .cta-panel {
        padding: 24px 20px;
    }

    .free-btn {
        width: 100%;
        min-width: 0;
    }
}
